Style Objects
You use thegxStyle
data type when referring to a style object. This data type is described in full in the chapter "Style Objects" of Inside Macintosh: QuickDraw GX Objects.Style objects have owner counts, tags, typographic style properties, and seven geometric style properties. The owner count and tags properties are described in Inside Macintosh: QuickDraw GX Objects. The typographic style properties are described in Inside Macintosh: QuickDraw GX Typography. The geometric style properties are listed here:
- Style attributes. This property is a group of flags that modify the behavior of the style object. The section "Style Attributes" on page 3-17 discusses the effects of these attributes. The section "Style Attributes" on page 3-98 describes the style attribute flags, and "Getting and Setting Style Attributes" on page 3-109 describes the functions you can use to examine or alter style attribute flags.
- Curve error. This property specifies the allowable amount of error when QuickDraw GX converts a path shape into a polygon shape. It also specifies how far apart geometric points must be for QuickDraw GX to consider them separate points when reducing or simplifying a shape. The section "Curve Error" on page 3-14 discusses the curve error property and the sections "Using Curve Error When Converting Paths to Polygons" on page 3-45 and "Using Curve Error When Reducing Shapes" on page 3-49 give examples of using curve error. The section "Getting and Setting Curve Error" on page 3-114 describes the functions you can use to examine or alter this property.
- Pen width. This property specifies the thickness of the pen QuickDraw GX uses to draw the contours of a shape. "The Geometric Pen" on page 3-15 describes how QuickDraw GX uses the pen when drawing, and "Getting and Setting the Pen Width" beginning on page 3-119 describes the functions you can use to examine or alter the pen width.
- Cap. This property specifies what QuickDraw GX should draw at the start and the end of a shape's contours. The section "Caps" on page 3-23 describes start and end caps, the sections "The Cap Structure" on page 3-99 and "Cap Attributes" on page 3-101 discuss the data types you use to describe start and end caps, and the section "Getting and Setting Caps" beginning on page 3-123 describes the functions you can use to examine or alter a shape's start and end caps.
- Join. This property specifies what QuickDraw GX draws at the corners of a shape's geometry. The section "Joins" on page 3-25 describes corner joins, the sections "The Join Structure" on page 3-101 and "Join Attributes" on page 3-102 discuss the data types you use to describe corner joins, and the section "Getting and Setting Joins" beginning on page 3-129 describes the functions you can use to examine or alter a shape's corner joins.
- Dash. This property specifies how QuickDraw GX should dash the contours of a shape. The section "Dashes" on page 3-27 describes dashes, the sections "The Dash Structure" on page 3-103 and "Dash Attributes" on page 3-105 discuss the data types you use to describe dashes, and the section "Getting and Setting Dashes" beginning on page 3-134 describes the functions you can use to examine or alter a shape's dashes.
- Pattern. This property specifies how QuickDraw GX should fill the geometry of a shape with a pattern. The section "Patterns" on page 3-31 describes patterns, the sections "The Pattern Structure" on page 3-106 and "Pattern Attributes" on page 3-107 discuss the data types you use to describe patterns, and the section "Getting and Setting Patterns" beginning on page 3-142 describes the functions you can use to examine or alter a shape's pattern.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help